package com.swust.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author hqf
 * @Date Created in 2021/9/12 21:14
 * @Description
 */
@Controller
@RequestMapping("/")
public class LoginController {

    @GetMapping("")
    public String login(){
        return "login";
    }

    @GetMapping("unauth")
    public String unauth(){
        return "unauth";
    }

    @GetMapping("logoutSuccess")
    @ResponseBody
    public String logoutSuccess(){
        return "注销成功";
    }
}
